package com.example.exam.controller;

import com.example.exam.entity.User;
import com.example.exam.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;

/**
 * @author shishuqian
 * date 2021/5/12
 * time 16:26
 **/
@SpringBootTest
public class UserController {

    @Autowired
    private UserService userService;

    @Test
    void TestUser(){
//        User user = new User();
//        user.setUsername("shishuqian");
//        user.setPassword("123456");
//        user.setGender(1);
//        user.setReal_name("石书乾");
//        user.setCreate_date(new Date());
//        userService.save(user);
    }

}
